<%@ Control language="c#" Inherits="cnVery.Cms.Ctrl.Categories" %>
<%@ Import namespace="cnVery.Data" %>
<%@ Import namespace="cnVery.Utils" %>

<asp:DataList  BorderWidth="0" ID="cat1" runat="server"  ItemStyle-VerticalAlign="top"
	RepeatDirection="Horizontal" RepeatColumns="1" ItemStyle-Width="190" >
       <ItemTemplate> 
	   <div id="wupinTypeList"> 
	   <a href='<%=Link%>?cid=<%#DataBinder.Eval(Container.DataItem,"id")%>'><%#DataBinder.Eval(Container.DataItem,"name")%></a>
	   </div>
	   
	   <div id="subTypeList">
       <asp:Repeater id="cat2" runat='server' EnableViewState="true">
        <itemtemplate>	
		<a href='<%=Link%>?cid=<%#DataBinder.Eval(Container.DataItem,"id")%>'><%#DataBinder.Eval(Container.DataItem,"name")%>
		</a>  
		</ItemTemplate>
       </asp:Repeater></div>
    </itemtemplate>
</asp:DataList>